<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			/*属性选择器*/
/* 			[type="text"]{
				background-color: red;
			}
			
			[type="password"]{
				background-color: green;
			} */
			input[type]{
				background-color: red;
			}
		</style>
	</head>
	<body>
		<div>你好</div>
		<form action="" method="post">
			<table>
				<tr>
					<td><label for="userName">用户名</label></td>
					<td><input type="text" id="userName" name="userName" placeholder="请输入用户名"/></td>
				</tr>
				<tr>
					<td><label for="userPwd">密码</label></td>
					<td><input type="password" id="userPwd" name="userPwd" placeholder="请输入密码"/></td>
				</tr>
			</table>
		</form>
	</body>
</html>
